package cn.ad.server.job.adapter.dbaccess;

import java.util.List;

import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cn.ad.server.persistence.dao.AdMaterialAuditDao;
import cn.ad.server.persistence.dao.AdMaterialDao;
import cn.ad.server.persistence.dao.AdMaterialGroupDao;
import cn.ad.server.persistence.dao.AdSizeDao;
import cn.ad.server.persistence.dao.AdSpaceDao;
import cn.ad.server.persistence.dao.AdTemplateDao;
import cn.ad.server.persistence.dao.AdTemplateSpecDao;
import cn.ad.server.persistence.dao.AppClassDao;
import cn.ad.server.persistence.dao.CampaignDao;
import cn.ad.server.persistence.dao.CreativeDao;
import cn.ad.server.persistence.dao.DayPartingDao;
import cn.ad.server.persistence.dao.InteractionAppDao;
import cn.ad.server.persistence.dao.InteractionRedirectsDao;
import cn.ad.server.persistence.dao.InterestDao;
import cn.ad.server.persistence.dao.PlatformAdspaceMapDao;
import cn.ad.server.persistence.dao.PlatformDao;
import cn.ad.server.persistence.dao.PlatformIndustryMapDao;
import cn.ad.server.persistence.dao.PlatformSizeMapDao;
import cn.ad.server.persistence.dao.PlatformTagSizeMapDao;
import cn.ad.server.persistence.dao.PlatformTagTemplateMapDao;
import cn.ad.server.persistence.dao.PubSiteDao;
import cn.ad.server.persistence.dao.RatioDao;
import cn.ad.server.persistence.dao.StrategyCreativeMapDao;
import cn.ad.server.persistence.dao.StrategyCrowdMapDao;
import cn.ad.server.persistence.dao.StrategyDao;
import cn.ad.server.persistence.dao.StrategyDeviceMapDao;
import cn.ad.server.persistence.dao.StrategyGeoMapDao;
import cn.ad.server.persistence.dao.StrategyInterestMapDao;
import cn.ad.server.persistence.dao.StrategyPlatformMapDao;
import cn.ad.server.persistence.dao.StrategySpaceMapDao;
import cn.ad.server.persistence.dao.SysConfigDao;
import cn.ad.server.domain.SysConfig;
import cn.ad.server.domain.ad.AdMaterial;
import cn.ad.server.domain.ad.AdMaterialAudit;
import cn.ad.server.domain.ad.AdMaterialGroup;
import cn.ad.server.domain.ad.AdSize;
import cn.ad.server.domain.ad.AdSpace;
import cn.ad.server.domain.ad.AdTemplate;
import cn.ad.server.domain.ad.AdTemplateSpec;
import cn.ad.server.domain.ad.Advertiser;
import cn.ad.server.domain.ad.AdvertiserBlackList;
import cn.ad.server.domain.ad.AppClass;
import cn.ad.server.domain.ad.AppUser;
import cn.ad.server.domain.ad.Campaign;
import cn.ad.server.domain.ad.Creative;
import cn.ad.server.domain.ad.DayTargert;
import cn.ad.server.domain.ad.GeoCity;
import cn.ad.server.domain.ad.GeoCountry;
import cn.ad.server.domain.ad.GeoDistrict;
import cn.ad.server.domain.ad.GeoState;
import cn.ad.server.domain.ad.GuidValueObject;
import cn.ad.server.domain.ad.Industry;
import cn.ad.server.domain.ad.InteractionApp;
import cn.ad.server.domain.ad.InteractionRedirects;
import cn.ad.server.domain.ad.Interest;
import cn.ad.server.domain.ad.Platform;
import cn.ad.server.domain.ad.PlatformAdspaceMap;
import cn.ad.server.domain.ad.PlatformIndustryMap;
import cn.ad.server.domain.ad.PlatformSizeMap;
import cn.ad.server.domain.ad.PlatformTagSizeMap;
import cn.ad.server.domain.ad.PlatformTagTemplateMap;
import cn.ad.server.domain.ad.PubSite;
import cn.ad.server.domain.ad.Ratio;
import cn.ad.server.domain.ad.Strategy;
import cn.ad.server.domain.ad.StrategyCreativeMap;
import cn.ad.server.domain.ad.StrategyCrowdMap;
import cn.ad.server.domain.ad.StrategyDeviceMap;
import cn.ad.server.domain.ad.StrategyGeoMap;
import cn.ad.server.domain.ad.StrategyInterestMap;
import cn.ad.server.domain.ad.StrategyPlatformMap;
import cn.ad.server.domain.ad.StrategySpaceMap;

@Component
public class DbContext
{
	static final Logger logger = LoggerFactory.getLogger(DbContext.class);
	@Autowired
	private AdSpaceDao adSpaceDao;

	@Autowired
	private RatioDao ratioDao;
	
	@Autowired
	private PubSiteDao pubSiteDao;

	@Autowired
	private CreativeDao creativeDao;
	
	@Autowired
	private StrategyDao strategyDao;
	
	@Autowired
	private AdMaterialGroupDao adMaterialGroupDao;
	
	@Autowired
	private AdMaterialDao adMaterialDao;
	
	@Autowired
	private StrategyGeoMapDao strategyGeoMapDao;
	
//	@Autowired
//	private GeoCityDao geoCityDao;
//	
//	@Autowired
//	private GeoCountryDao geoCountryDao;
//	
//	@Autowired
//	private GeoDistrictDao geoDistrictDao;
//	
//	@Autowired
//	private GeoStateDao geoStateDao;
	
	@Autowired
	private DayPartingDao dayPartingDao;
	
	@Autowired
	private InteractionRedirectsDao interactionRedirectsDao;
	
	@Autowired
	private InteractionAppDao interactionAppDao;
	
	@Autowired
	private AppClassDao appClassDao;
	
	@Autowired
	private AdSizeDao adSizeDao;
	
	@Autowired
	private CampaignDao campaignDao;
	
	@Autowired
	private AdTemplateSpecDao adTemplateSpecDao;
	
	@Autowired
	private AdTemplateDao adTemplateDao;
	
//	@Autowired
//	private StrategyConnectTypesDao strategyConnectTypesDao;
	
	@Autowired
	private StrategyCreativeMapDao strategyCreativeMapDao;
	
//	@Autowired
//	private StrategyOperatorMapDao strategyOperatorMapDao;
	
//	@Autowired
//	private StrategyOsMapDao strategyOsMapDao;
	
	@Autowired
	private StrategySpaceMapDao strategySpaceMapDao;
	
	@Autowired
	private SysConfigDao sysConfigDao;
	
	@Autowired
	private AdMaterialAuditDao adMaterialAuditDao;
	
	@Autowired
	private PlatformDao platformDao;
	
	@Autowired
	private PlatformIndustryMapDao platformIndustryMapDao;
	
	@Autowired
	private PlatformSizeMapDao platformSizeMapDao;
	
	@Autowired
	private InterestDao interestDao;
	
	@Autowired
	private StrategyCrowdMapDao strategyCrowdMapDao;
	
	@Autowired
	private StrategyDeviceMapDao strategyDeviceMapDao;
	
	@Autowired
	private StrategyInterestMapDao strategyInterestMapDao;
	
	@Autowired
	private StrategyPlatformMapDao strategyPlatformMapDao;
	
	@Autowired
	private PlatformTagTemplateMapDao platformTagTemplateMapDao;
	
	@Autowired
	private PlatformTagSizeMapDao platformTagSizeMapDao;
	
	@Autowired
	private PlatformAdspaceMapDao platformAdspaceMapDao;
	
	private List<AdMaterial> listAdMaterial;
	private List<AdMaterialGroup> listAdMaterialGroup;
	private List<AdSize> listAdSize;
	private List<AdSpace> listAdSpace;
	private List<AdTemplate> listAdTemplate;
	private List<AdTemplateSpec> listAdTemplateSpec;
	private List<Advertiser> listAdvertiser;
	private List<AdvertiserBlackList> listAdvertiserBlackList;
	private List<AppClass> listAppClass;
	private List<AppUser> listAppUser;
	private List<Campaign> listCampaign;
	private List<Creative> listCreative;
	private List<GeoCity> listGeoCity;
	private List<GeoCountry> listGeoCountry;
	private List<GeoDistrict> listGeoDistrict;
	private List<GeoState> listGeoState;
	private List<GuidValueObject> listGuidValueObject;
	private List<Industry> listIndustry;
	private List<InteractionApp> listInteractionApp;
	private List<InteractionRedirects> listInteractionRedirects;
	private List<PubSite> listPubSite;
	private List<Ratio> listRatio;
	private List<Strategy> listStrategy;
	private List<StrategyCreativeMap> listStrategyCreativeMap;
	private List<DayTargert> listStrategyDayMap;
	private List<StrategyGeoMap> listStrategyGeoMap;
	private List<StrategySpaceMap> listStrategySpaceMap;
	private List<SysConfig> listSysConfig;
	
	//----------------------------------------------------
	private List<AdMaterialAudit> listAdMaterialAudit;//ad_material_audit
	private List<Platform> listPlatform;//platform
	private List<PlatformIndustryMap> listPlatformIndustryMap;//platform_industry_map
	private List<PlatformSizeMap> listPlatformSizeMap;//platform_size_map
	private List<Interest> listInterest;//interest
	private List<StrategyCrowdMap> listStrategyCrowdMap;//strategy_crowd_map
	private List<StrategyDeviceMap> listStrategyDeviceMap;//strategy_device_map
	private List<StrategyInterestMap> listStrategyInterestMap;//strategy_interest_map
	private List<StrategyPlatformMap> listStrategyPlatformMap;//strategy_platform_map
	private List<PlatformTagTemplateMap> listPlatformTagTemplateMap;//PlatformTagTemplateMap
	private List<PlatformTagSizeMap> listPlatformTagSizeMap;//PlatformTagSizeMap
	private List<PlatformAdspaceMap> listPlatformAdspaceMap;//PlatformTagSizeMap
	
	
	private DateTime dbQueryTime;//防止执行时间过长。下次查询所依据的时间。
	
	
	public void loadAllData(){
		logger.debug("loadAllData - start");
		clearData();
		dbQueryTime=new DateTime();
		
		listAdMaterial=adMaterialDao.findAll();
		listAdMaterialGroup=adMaterialGroupDao.findAll();
		listAdSize = adSizeDao.findAll();
		listAdSpace = adSpaceDao.findAll();
		listAdTemplate = adTemplateDao.findAll();
		listAdTemplateSpec = adTemplateSpecDao.findAll();
		//adverdtiser
		//advertiserBlackList
		listAppClass = appClassDao.findAll();
		//appUser
		listCampaign = campaignDao.findAll();
		listCreative = creativeDao.findAll();
		//listGeoCity = geoCityDao.findAll();
		//listGeoCountry = geoCountryDao.findAll();
		//geoDistrictDao.findAll();
		//geoStateDao.findAll();
		//GuidValueObject
		//Industry
		listInteractionApp = interactionAppDao.findAll();
		listInteractionRedirects = interactionRedirectsDao.findAll();
		listPubSite = pubSiteDao.findAll();
		listRatio = ratioDao.findAll();
		listStrategy = strategyDao.findAll();
		listStrategyCreativeMap = strategyCreativeMapDao.findAll();
		listStrategyDayMap = dayPartingDao.findAll();
		listStrategyGeoMap = strategyGeoMapDao.findAll();
		listStrategySpaceMap = strategySpaceMapDao.findAll();
		listSysConfig = sysConfigDao.findAll();
		//-----------------------------
		listAdMaterialAudit = adMaterialAuditDao.findAll();
		listPlatform = platformDao.findAll();
		listPlatformIndustryMap = platformIndustryMapDao.findAll();
		listPlatformSizeMap = platformSizeMapDao.findAll();
		listInterest = interestDao.findAll();
		listStrategyCrowdMap = strategyCrowdMapDao.findAll();
		listStrategyDeviceMap = strategyDeviceMapDao.findAll();
		listStrategyInterestMap = strategyInterestMapDao.findAll();
		listStrategyPlatformMap = strategyPlatformMapDao.findAll();
		listPlatformTagTemplateMap = platformTagTemplateMapDao.findAll();
		listPlatformTagSizeMap = platformTagSizeMapDao.findAll();
		listPlatformAdspaceMap = platformAdspaceMapDao.findAll();
		DbDataContainer.updateMerge(this);
		logger.debug("loadAllData - end");
	}
	
	public void loadUpdatedData(String warmUpTime){
		loadAllData();
		/*
		clearData();
		dbQueryTime=new DateTime();
		listAdMaterial=adMaterialDao.findAll();
		listAdMaterialGroup=adMaterialGroupDao.findAfterTime(warmUpTime);
		listAdSize = adSizeDao.findAfterTime(warmUpTime);
		listAdSpace = adSpaceDao.findAfterTime(warmUpTime);
		listAdTemplate = adTemplateDao.findAfterTime(warmUpTime);
		listAdTemplateSpec = adTemplateSpecDao.findAfterTime(warmUpTime);
		//adverdtiser
		//advertiserBlackList
		//listAppClass = appClassDao.findAll();
		//appUser
		listCampaign = campaignDao.findAfterTime(warmUpTime);
		listCreative = creativeDao.findAfterTime(warmUpTime);
		//listGeoCity = geoCityDao.findAfterTime(warmUpTime);
		//listGeoCountry = geoCountryDao.findAfterTime(warmUpTime);
		//geoDistrictDao.findAfterTime(warmUpTime);
		//geoStateDao.findAfterTime(warmUpTime);
		//GuidValueObject
		//Industry
		listInteractionApp = interactionAppDao.findAll();
		listInteractionRedirects = interactionRedirectsDao.findAll();
		listPubSite = pubSiteDao.findAfterTime(warmUpTime);
		listRatio = ratioDao.findAfterTime(warmUpTime);
		listStrategy = strategyDao.findAfterTime(warmUpTime);
		listStrategyCreativeMap = strategyCreativeMapDao.findAfterTime(warmUpTime);
		listStrategyDayMap = dayPartingDao.findAfterTime(warmUpTime);
		listStrategyGeoMap = strategyGeoMapDao.findAfterTime(warmUpTime);
		listStrategySpaceMap = strategySpaceMapDao.findAfterTime(warmUpTime);
		listSysConfig = sysConfigDao.findAfterTime(warmUpTime);
		
		listAdMaterialAudit = adMaterialAuditDao.findAfterTime(warmUpTime);
		listPlatform = platformDao.findAfterTime(warmUpTime);
		listPlatformIndustryMap = platformIndustryMapDao.findAfterTime(warmUpTime);
		listPlatformSizeMap = platformSizeMapDao.findAfterTime(warmUpTime);
		listInterest = interestDao.findAll();
		listStrategyCrowdMap = strategyCrowdMapDao.findAfterTime(warmUpTime);
		listStrategyDeviceMap = strategyDeviceMapDao.findAfterTime(warmUpTime);
		listStrategyInterestMap = strategyInterestMapDao.findAfterTime(warmUpTime);
		listStrategyPlatformMap = strategyPlatformMapDao.findAfterTime(warmUpTime);
		listPlatformTagTemplateMap = platformTagTemplateMapDao.findAfterTime(warmUpTime);
		listPlatformTagSizeMap = platformTagSizeMapDao.findAfterTime(warmUpTime);
		DbDataContainer.updateMerge(this);
		*/
	}
	private void clearData(){
		listAdMaterial=null;
		listAdMaterialGroup=null;
		listAdSize=null;
		listAdSpace=null;
		listAdTemplate=null;
		listAdTemplateSpec=null;
		//adverdtiser
		//advertiserBlackList
		listAppClass=null;
		//appUser
		listCampaign=null;
		listCreative=null;
		//listGeoCity = geoCityDao.findAfterTime(warmUpTime);
		//listGeoCountry = geoCountryDao.findAfterTime(warmUpTime);
		//geoDistrictDao.findAfterTime(warmUpTime);
		//geoStateDao.findAfterTime(warmUpTime);
		//GuidValueObject
		//Industry
		listInteractionApp=null;
		listInteractionRedirects=null;
		listPubSite=null;
		listRatio=null;
		listStrategy=null;
		listStrategyCreativeMap=null;
		listStrategyDayMap=null;
		listStrategyGeoMap=null;
		listStrategySpaceMap=null;
		listSysConfig=null;
	}
	public List<SysConfig> getListSysConfig() {
		return listSysConfig;
	}

	public void setListSysConfig(List<SysConfig> listSysConfig) {
		this.listSysConfig = listSysConfig;
	}

	public DateTime getDbQueryTime() {
		return dbQueryTime;
	}

	public List<AdMaterial> getListAdMaterial() {
		return listAdMaterial;
	}


	public void setListAdMaterial(List<AdMaterial> listAdMaterial) {
		this.listAdMaterial = listAdMaterial;
	}


	public List<AdMaterialGroup> getListAdMaterialGroup() {
		return listAdMaterialGroup;
	}


	public void setListAdMaterialGroup(List<AdMaterialGroup> listAdMaterialGroup) {
		this.listAdMaterialGroup = listAdMaterialGroup;
	}


	public List<AdSize> getListAdSize() {
		return listAdSize;
	}


	public void setListAdSize(List<AdSize> listAdSize) {
		this.listAdSize = listAdSize;
	}


	public List<AdSpace> getListAdSpace() {
		return listAdSpace;
	}


	public void setListAdSpace(List<AdSpace> listAdSpace) {
		this.listAdSpace = listAdSpace;
	}


	public List<AdTemplate> getListAdTemplate() {
		return listAdTemplate;
	}


	public void setListAdTemplate(List<AdTemplate> listAdTemplate) {
		this.listAdTemplate = listAdTemplate;
	}


	public List<AdTemplateSpec> getListAdTemplateSpec() {
		return listAdTemplateSpec;
	}


	public void setListAdTemplateSpec(List<AdTemplateSpec> listAdTemplateSpec) {
		this.listAdTemplateSpec = listAdTemplateSpec;
	}


	public List<Advertiser> getListAdvertiser() {
		return listAdvertiser;
	}


	public void setListAdvertiser(List<Advertiser> listAdvertiser) {
		this.listAdvertiser = listAdvertiser;
	}


	public List<AdvertiserBlackList> getListAdvertiserBlackList() {
		return listAdvertiserBlackList;
	}


	public void setListAdvertiserBlackList(List<AdvertiserBlackList> listAdvertiserBlackList) {
		this.listAdvertiserBlackList = listAdvertiserBlackList;
	}


	public List<AppClass> getListAppClass() {
		return listAppClass;
	}


	public void setListAppClass(List<AppClass> listAppClass) {
		this.listAppClass = listAppClass;
	}


	public List<AppUser> getListAppUser() {
		return listAppUser;
	}


	public void setListAppUser(List<AppUser> listAppUser) {
		this.listAppUser = listAppUser;
	}


	public List<Campaign> getListCampaign() {
		return listCampaign;
	}


	public void setListCampaign(List<Campaign> listCampaign) {
		this.listCampaign = listCampaign;
	}


	public List<Creative> getListCreative() {
		return listCreative;
	}


	public void setListCreative(List<Creative> listCreative) {
		this.listCreative = listCreative;
	}


	public List<GeoCity> getListGeoCity() {
		return listGeoCity;
	}


	public void setListGeoCity(List<GeoCity> listGeoCity) {
		this.listGeoCity = listGeoCity;
	}


	public List<GeoCountry> getListGeoCountry() {
		return listGeoCountry;
	}


	public void setListGeoCountry(List<GeoCountry> listGeoCountry) {
		this.listGeoCountry = listGeoCountry;
	}


	public List<GeoDistrict> getListGeoDistrict() {
		return listGeoDistrict;
	}


	public void setListGeoDistrict(List<GeoDistrict> listGeoDistrict) {
		this.listGeoDistrict = listGeoDistrict;
	}


	public List<GeoState> getListGeoState() {
		return listGeoState;
	}


	public void setListGeoState(List<GeoState> listGeoState) {
		this.listGeoState = listGeoState;
	}


	public List<GuidValueObject> getListGuidValueObject() {
		return listGuidValueObject;
	}


	public void setListGuidValueObject(List<GuidValueObject> listGuidValueObject) {
		this.listGuidValueObject = listGuidValueObject;
	}


	public List<Industry> getListIndustry() {
		return listIndustry;
	}


	public void setListIndustry(List<Industry> listIndustry) {
		this.listIndustry = listIndustry;
	}


	public List<InteractionApp> getListInteractionApp() {
		return listInteractionApp;
	}


	public void setListInteractionApp(List<InteractionApp> listInteractionApp) {
		this.listInteractionApp = listInteractionApp;
	}


	public List<InteractionRedirects> getListInteractionRedirects() {
		return listInteractionRedirects;
	}


	public void setListInteractionRedirects(List<InteractionRedirects> listInteractionRedirects) {
		this.listInteractionRedirects = listInteractionRedirects;
	}


	public List<PubSite> getListPubSite() {
		return listPubSite;
	}


	public void setListPubSite(List<PubSite> listPubSite) {
		this.listPubSite = listPubSite;
	}


	public List<Ratio> getListRatio() {
		return listRatio;
	}


	public void setListRatio(List<Ratio> listRatio) {
		this.listRatio = listRatio;
	}


	public List<Strategy> getListStrategy() {
		return listStrategy;
	}


	public void setListStrategy(List<Strategy> listStrategy) {
		this.listStrategy = listStrategy;
	}

	public List<StrategyCreativeMap> getListStrategyCreativeMap() {
		return listStrategyCreativeMap;
	}


	public void setListStrategyCreativeMap(List<StrategyCreativeMap> listStrategyCreativeMap) {
		this.listStrategyCreativeMap = listStrategyCreativeMap;
	}


	public List<DayTargert> getListStrategyDayMap() {
		return listStrategyDayMap;
	}


	public void setListStrategyDayMap(List<DayTargert> listStrategyDayMap) {
		this.listStrategyDayMap = listStrategyDayMap;
	}


	public List<StrategyGeoMap> getListStrategyGeoMap() {
		return listStrategyGeoMap;
	}


	public void setListStrategyGeoMap(List<StrategyGeoMap> listStrategyGeoMap) {
		this.listStrategyGeoMap = listStrategyGeoMap;
	}

	public List<StrategySpaceMap> getListStrategySpaceMap() {
		return listStrategySpaceMap;
	}


	public void setListStrategySpaceMap(List<StrategySpaceMap> listStrategySpaceMap) {
		this.listStrategySpaceMap = listStrategySpaceMap;
	}

	public List<AdMaterialAudit> getListAdMaterialAudit() {
		return listAdMaterialAudit;
	}

	public void setListAdMaterialAudit(List<AdMaterialAudit> listAdMaterialAudit) {
		this.listAdMaterialAudit = listAdMaterialAudit;
	}

	public List<Platform> getListPlatform() {
		return listPlatform;
	}

	public void setListPlatform(List<Platform> listPlatform) {
		this.listPlatform = listPlatform;
	}

	public List<PlatformIndustryMap> getListPlatformIndustryMap() {
		return listPlatformIndustryMap;
	}

	public void setListPlatformIndustryMap(List<PlatformIndustryMap> listPlatformIndustryMap) {
		this.listPlatformIndustryMap = listPlatformIndustryMap;
	}

	public List<PlatformSizeMap> getListPlatformSizeMap() {
		return listPlatformSizeMap;
	}

	public void setListPlatformSizeMap(List<PlatformSizeMap> listPlatformSizeMap) {
		this.listPlatformSizeMap = listPlatformSizeMap;
	}

	public List<Interest> getListInterest() {
		return listInterest;
	}

	public void setListInterest(List<Interest> listInterest) {
		this.listInterest = listInterest;
	}

	public List<StrategyCrowdMap> getListStrategyCrowdMap() {
		return listStrategyCrowdMap;
	}

	public void setListStrategyCrowdMap(List<StrategyCrowdMap> listStrategyCrowdMap) {
		this.listStrategyCrowdMap = listStrategyCrowdMap;
	}

	public List<StrategyDeviceMap> getListStrategyDeviceMap() {
		return listStrategyDeviceMap;
	}

	public void setListStrategyDeviceMap(List<StrategyDeviceMap> listStrategyDeviceMap) {
		this.listStrategyDeviceMap = listStrategyDeviceMap;
	}

	public List<StrategyInterestMap> getListStrategyInterestMap() {
		return listStrategyInterestMap;
	}

	public void setListStrategyInterestMap(List<StrategyInterestMap> listStrategyInterestMap) {
		this.listStrategyInterestMap = listStrategyInterestMap;
	}

	public List<StrategyPlatformMap> getListStrategyPlatformMap() {
		return listStrategyPlatformMap;
	}

	public void setListStrategyPlatformMap(List<StrategyPlatformMap> listStrategyPlatformMap) {
		this.listStrategyPlatformMap = listStrategyPlatformMap;
	}

	public List<PlatformTagTemplateMap> getListPlatformTagTemplateMap() {
		return listPlatformTagTemplateMap;
	}

	public void setListPlatformTagTemplateMap(List<PlatformTagTemplateMap> listPlatformTagTemplateMap) {
		this.listPlatformTagTemplateMap = listPlatformTagTemplateMap;
	}

	public List<PlatformTagSizeMap> getListPlatformTagSizeMap() {
		return listPlatformTagSizeMap;
	}

	public void setListPlatformTagSizeMap(List<PlatformTagSizeMap> listPlatformTagSizeMap) {
		this.listPlatformTagSizeMap = listPlatformTagSizeMap;
	}

	public List<PlatformAdspaceMap> getListPlatformAdspaceMap() {
		return listPlatformAdspaceMap;
	}

	public void setListPlatformAdspaceMap(List<PlatformAdspaceMap> listPlatformAdspaceMap) {
		this.listPlatformAdspaceMap = listPlatformAdspaceMap;
	}
	
	
}
